// 社群相关接口
import http from "../common/http.js"

export default {
	//社群列表内容
	postList: (data,needLoading) => {
		return http.POST('/plugin/posts/posts/list', data,needLoading) 
	},
	//获取地理位置
	locationContent: (data,needLoading) => {
		return http.GET('/default/location-content', data,needLoading) 
	},
	//获取天气信息
	tianQi: (data,needLoading) => {
		return http.GET('/plugin/posts/posts/tian-qi', data,needLoading) 
	},
	//点赞
	postsGood: (data,needLoading) => {
		return http.POST('/plugin/posts/posts/good', data,needLoading) 
	},
	//获取评论
	getComment: (data,needLoading) => {
		return http.POST('/plugin/posts/posts/get-comment', data,needLoading) 
	},
	//提交评论
	addComment: (data,needLoading) => {
		return http.POST('/plugin/posts/posts/add-comment', data,needLoading) 
	},
	//投诉
	postsReport: (data,needLoading) => {
		return http.POST('/plugin/posts/posts/posts-report', data,needLoading) 
	},
}